package org.lendoo.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 调用接口https://api.weixin.qq.com/sns/jscode2session的日志对象
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "WeChatJscode2SessionApiResult", description = "调用接口https://api.weixin.qq.com/sns/jscode2session的日志对象")
@TableName("wechat_jsconde2session_log")
public class WeChatJscode2SessionLog {

    @ApiModelProperty(value = "主键", dataType = "Integer")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "session_key", dataType = "String")
    @TableField(value = "session_key")
    private String session_key;

    @ApiModelProperty(value = "openid", dataType = "String")
    @TableField(value = "openid")
    private String openid;

    @ApiModelProperty(value = "用户id", dataType = "Integer")
    @TableField(value = "user_id")
    private Integer userId;

    @ApiModelProperty(value = "errcode", dataType = "Integer")
    @TableField(value = "errcode")
    private Integer errcode;

    @ApiModelProperty(value = "errmsg", dataType = "String")
    @TableField(value = "errmsg")
    private String errmsg;

    @ApiModelProperty(value = "js_code", dataType = "String")
    @TableField(value = "js_code")
    private String jsCode;

    @ApiModelProperty(value = "远程客户端IP", dataType = "String")
    @TableField(value = "remote_address")
    private String remoteAddress;

    @ApiModelProperty(value = "用户头像url", dataType = "String")
    private String userAvatarUrl;

    @ApiModelProperty(value = "创建时间", dataType = "Date")
    @TableField(value = "create_time")
    private Date createTime;
}
